<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/dataapi/css/themes/black/easyui.css">
    <link rel="stylesheet" href="/Public/dataapi/css/color.css">
    <link rel="stylesheet" href="/Public/dataapi/css/icon.css">
    <link rel="stylesheet" href="/Public/dataapi/css/mobile.css">
    <script src="/Public/dataapi/js/jquery.min.js"></script>
    <script src="/Public/dataapi/js/jquery.easyui.min.js"></script>
    <script src="/Public/dataapi/js/easyloader.js"></script>
</head>
<body>
<div id="pageAll">
    <div class="pageTop">
        <div class="page">
            <img src="/Public/dataapi/img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
                href="#">导入管理</a>&nbsp;-</span>&nbsp;表格导入
        </div>
    </div>
    <a href="/DataAPI.php/Index/downloadMould">下载模板表格</a>
    <form action="/DataAPI.php/Index/upload" enctype="multipart/form-data" method="post" >
        批次<input type="text" name="batch" placeholder="请输入批次，默认时间批次，精确到秒"/>
        <input type="file" name="excel" />
        <input type="submit" value="提交" >
    </form>
    </div>
<table id="dg"></table>
<script>
    $('#dg').datagrid({
        columns:[[
            {field:'earn13',title:'商品编码',width:100,align:'center'},
            {field:'name',title:'商品名称',width:100,align:'center'},
            {field:'info_keywords',title:'商品关键字',width:100,align:'center'},
            {field:'weight',title:'重量',width:40,align:'center'},
            {field:'pom',title:'计量单位',width:40,align:'center'},
            {field:'info_pc',title:'PC端图片',width:100,align:'center'},
            {field:'info_mobile',title:'手机端图片',width:100,align:'center'},
            {field:'market_price',title:'市场价',width:40,align:'center'},
            {field:'acting_price',title:'一键代发价',width:48,align:'center'},
            {field:'wholesale_price',title:'批发价',width:40,align:'center'},
            {field:'lock_price',title:'锁库价',width:40,align:'center'},
            {field:'wholesale_start_num',title:'最低批发数量',width:60,align:'center'},
            {field:'lock_start_num',title:'最低锁库数量',width:60,align:'center'},
            {field:'price',title:'商品原价',width:40,align:'center'},
            {field:'stock_num',title:'库存',width:40,align:'center'},
            {field:'createdtime',title:'导入时间',width:100,align:'center'},
            {field:'is_sync',title:'是否同步',width:40,align:'center'},
            {field:'batch',title:'导入批次',width:100,align:'center'}
        ]],
        rownumbers:true,
        fitColumns:true,
        striped:true,
        nowrap:true,
        pagination:true,
        pagePosition:'bottom',
        pageNumber:1,
        pageSize:10,
        showFooter:true
    });
    data = <?php echo $goods?>;
    $('#dg').datagrid('loadData', data);
</script>
</body>
</html>